package com.woniuxy.service.section.impl;

import com.woniuxy.entity.section.Section;
import com.woniuxy.mapper.section.SectionMapper;
import com.woniuxy.service.section.SectionService;
import com.woniuxy.util.ResponseData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SectionServiceImpl implements SectionService {
    @Resource
    private SectionMapper sectionMapper;

    @Override
    public ResponseData<?> querySection() {
        List<Section> sections = sectionMapper.querySection();
        return new ResponseData<>().OK(sections);
    }

}
